﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yto.OracleEF
{
	class Program
	{
		static void Main(string[] args)
		{
			Database.SetInitializer(new DropCreateDatabaseAlways<TestDbContext>());
			using (var context = new TestDbContext())
			{
				var user = new UserInfo() { Name = "test" };

				context.UserInfos.Add(user);
				context.SaveChanges();

				var user_read = context.UserInfos.First();
				Console.WriteLine(user_read.Name);
			}

			Console.ReadLine();
		}
	}
}
